Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix - Update erigon repo #2121

Merged
merged 3 commits into from
Nov 5, 2024
Merged

Fix - Update erigon repo #2121

merged 3 commits into from
Nov 5, 2024

Conversation

gummybera
Copy link
Contributor

@gummybera gummybera commented Nov 1, 2024

Erigon repo has moved from thorax/erigon to erigontech/erigon

Summary by CodeRabbit

  • New Features

    • Updated Docker image for the Erigon client across various configuration files to version v2.60.9, enhancing performance and compatibility.
  • Chores

    • Cleaned up configuration files by removing outdated comments and references, improving clarity and organization.

@gummybera gummybera requested a review from abi87 November 1, 2024 15:17
@gummybera gummybera self-assigned this Nov 1, 2024
Copy link
Contributor

coderabbitai bot commented Nov 1, 2024

Walkthrough

The pull request introduces updates to various configuration files and scripts, primarily changing the Docker image for the erigon client from thorax/erigon:v2.60.1 to erigontech/erigon:v2.60.9. This update affects the initialization and running commands for the erigon node in the build/scripts/testing.mk, kurtosis/beaconkit-all.yaml, kurtosis/beaconkit-base-gcp.yaml, kurtosis/src/nodes/nodes.star, and testing/e2e/config/config.go files. Other than these image updates, no significant changes to logic or structure are present.

Changes

File Change Summary
build/scripts/testing.mk Updated Docker image from thorax/erigon:latest to erigontech/erigon:latest.
kurtosis/beaconkit-all.yaml Updated Docker image from thorax/erigon:v2.60.1 to erigontech/erigon:v2.60.9; cleaned up comments.
kurtosis/beaconkit-base-gcp.yaml Updated Docker image from thorax/erigon:v2.60.1 to erigontech/erigon:v2.60.9.
kurtosis/src/nodes/nodes.star Updated image reference for "erigon" from thorax/erigon:v2.60.1 to erigontech/erigon:v2.60.9.
testing/e2e/config/config.go Updated image reference for "erigon" from thorax/erigon:v2.60.1 to erigontech/erigon:v2.60.9.

Possibly related PRs

  • Fix - Update makefile to use new kurtosis repo #2085: The changes in this PR involve updating the makefile related to the installation of the Kurtosis CLI, which may indirectly relate to the overall build process that includes Docker images, but it does not directly modify the Docker image references for the erigon node as seen in the main PR.

Suggested reviewers

  • nidhi-singh02
  • ocnc2
  • abi87
  • itsdevbear

Poem

In the land of code where rabbits play,
A new image dawns, brightening the day.
From thorax to erigontech we leap,
With changes so swift, our dreams we keep.
Hopping through files, we make our mark,
In the world of Docker, we ignite the spark! 🐇✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

codecov bot commented Nov 1, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 23.48%. Comparing base (fe572e6) to head (5fbeac0).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
testing/e2e/config/config.go 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2121   +/-   ##
=======================================
  Coverage   23.48%   23.48%           
=======================================
  Files         357      357           
  Lines       16064    16064           
  Branches       12       12           
=======================================
  Hits         3772     3772           
  Misses      12121    12121           
  Partials      171      171           
Files with missing lines Coverage Δ
testing/e2e/config/config.go 0.00% <0.00%> (ø)

Copy link
Collaborator

@abi87 abi87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @gummybera. This solve some late issues with test-e2e on CI.
Cc @nidhi-singh02

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE

📥 Commits

Reviewing files that changed from the base of the PR and between 66bad3e and af8c5e0.

📒 Files selected for processing (5)
  • build/scripts/testing.mk (2 hunks)
  • kurtosis/beaconkit-all.yaml (1 hunks)
  • kurtosis/beaconkit-base-gcp.yaml (1 hunks)
  • kurtosis/src/nodes/nodes.star (1 hunks)
  • testing/e2e/config/config.go (1 hunks)
🔇 Additional comments (3)
kurtosis/beaconkit-all.yaml (2)

96-96: Verify Otterscan compatibility with new Erigon image.

Since the configuration indicates that Otterscan specifically requires Erigon nodes (as noted in the comment on line 143), we should ensure compatibility is maintained with the new image.

#!/bin/bash
# Description: Check Otterscan-Erigon integration configurations

# Search for Otterscan-specific configurations or version requirements
rg -g '*.{yaml,json,toml,md}' -B 3 -A 3 'otterscan.*erigon|erigon.*otterscan'

96-96: LGTM! Image update aligns with repository migration.

The change from thorax/erigon to erigontech/erigon correctly reflects the repository migration while maintaining the same version tag.

Let's verify the image availability and compatibility:

kurtosis/src/nodes/nodes.star (1)

36-36: LGTM! The image update aligns with the repository migration.

The change from thorax/erigon to erigontech/erigon correctly reflects the repository migration while maintaining the same version v2.60.1.

Let's verify that this image update is consistent across all configuration files:

✅ Verification successful

✅ Image reference update is consistent across the codebase

The verification confirms:

  • No remaining references to thorax/erigon in the codebase
  • All Erigon image references consistently use erigontech/erigon
  • Version v2.60.1 is consistently used in configuration files
  • Only build scripts use the latest tag, which is appropriate for testing purposes
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify consistent Erigon image references across the codebase
# Expected: All references should use erigontech/erigon:v2.60.1

echo "Checking for any remaining references to thorax/erigon..."
rg "thorax/erigon"

echo "Verifying consistent use of new image reference..."
rg "erigontech/erigon"

Length of output: 684

@@ -88,7 +88,7 @@ node_settings:
max_memory: 32768
images:
besu: hyperledger/besu:latest
erigon: thorax/erigon:v2.60.1
erigon: erigontech/erigon:v2.60.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

⚠️ The new Erigon image erigontech/erigon:v2.60.1 is not available

The verification shows that while the original image thorax/erigon:v2.60.1 exists and is actively used (last pulled on Nov 1, 2024), the new image erigontech/erigon:v2.60.1 is not available on Docker Hub. This will cause deployment failures.

  • The original image thorax/erigon:v2.60.1 is verified to exist
  • The new image erigontech/erigon:v2.60.1 is not found on Docker Hub
  • This change will break the deployment as the required image is missing
🔗 Analysis chain

LGTM! Repository update looks correct.

The change from thorax/erigon to erigontech/erigon aligns with the PR objective while maintaining the same version v2.60.1.

Let's verify the availability of the new image:


Let me verify the image availability through Docker Hub API directly.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that the new Erigon image exists and is accessible
# Expected: The command should return details about the image manifest

# Test: Check if the new image exists
docker manifest inspect erigontech/erigon:v2.60.1 2>/dev/null || echo "Image not found"

Length of output: 92


Script:

#!/bin/bash
# Use curl to check if the image exists on Docker Hub
curl -s -f -L "https://hub.docker.com/v2/repositories/erigontech/erigon/tags/v2.60.1" || echo "Image not found on Docker Hub"

# Also check the original image for comparison
curl -s -f -L "https://hub.docker.com/v2/repositories/thorax/erigon/tags/v2.60.1" || echo "Original image not found on Docker Hub"

Length of output: 1050

@@ -202,7 +202,7 @@ start-erigon: ## start an ephemeral `erigon` node
docker run \
--rm -v $(PWD)/${TESTAPP_FILES_DIR}:/${TESTAPP_FILES_DIR} \
-v $(PWD)/.tmp:/.tmp \
thorax/erigon:latest init \
erigontech/erigon:latest init \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Consider using a specific version tag instead of latest.

Using the latest tag can lead to inconsistent behavior across different environments and times. Consider using a specific version tag (e.g., v2.60.1) to ensure reproducible builds and consistent behavior.

Apply this diff to align with other files:

-    erigontech/erigon:latest init \
+    erigontech/erigon:v2.60.1 init \
     --datadir .tmp/erigon \
     ${ETH_GENESIS_PATH}

 	docker run \
 	-p 30303:30303 \
 	-p 8545:8545 \
 	-p 8551:8551 \
 	--rm -v $(PWD)/${TESTAPP_FILES_DIR}:/${TESTAPP_FILES_DIR} \
 	-v $(PWD)/.tmp:/.tmp \
-	erigontech/erigon:latest \
+	erigontech/erigon:v2.60.1 \
 	--http \

Also applies to: 215-215


💡 Codebase verification

Use specific version tag v2.60.1 instead of latest for consistency

The latest tag in build/scripts/testing.mk should be updated to v2.60.1 to maintain consistency with other configuration files:

  • testing/e2e/config/config.go
  • kurtosis/beaconkit-base-gcp.yaml
  • kurtosis/src/nodes/nodes.star
  • kurtosis/beaconkit-all.yaml

Using a specific version tag instead of latest ensures reproducible builds and consistent behavior across different environments.

🔗 Analysis chain

Repository update looks good but version tag is inconsistent.

The update from thorax/erigon to erigontech/erigon aligns with the PR objectives. However, this file uses the latest tag while other files mentioned in the AI summary use v2.60.1.

Let's verify the version tags across files:

Also applies to: 215-215

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for inconsistent Erigon version tags
# Expected: All files should use the same version tag

echo "Checking Erigon version tags across files..."
rg -l "erigon.*:.*v2\.60\.1" || rg -l "erigon.*:.*latest"

Length of output: 249


Script:

#!/bin/bash
# Let's check the actual content to understand the version usage
echo "Checking version tags in testing.mk..."
rg "erigon.*:.*latest" build/scripts/testing.mk -A 2 -B 2

echo -e "\nChecking version tags in other files..."
rg "erigon.*:.*v2\.60\.1" kurtosis/src/nodes/nodes.star kurtosis/beaconkit-base-gcp.yaml kurtosis/beaconkit-all.yaml testing/e2e/config/config.go -A 2 -B 2

Length of output: 2105

@@ -272,7 +272,7 @@ func defaultExecutionSettings() ExecutionSettings {
},
Images: map[string]string{
"besu": "hyperledger/besu:24.5.4",
"erigon": "thorax/erigon:v2.60.1",
"erigon": "erigontech/erigon:v2.60.1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

Warning: Docker image tag v2.60.1 not found in erigontech/erigon repository

The specified Docker image erigontech/erigon:v2.60.1 appears to be invalid:

  • The repository exists but only contains main-* tags
  • The version v2.60.1 is referenced in multiple configuration files but the tag is not available in the repository

Please verify the correct tag to use from the available ones at erigontech/erigon.

🔗 Analysis chain

LGTM! Verify the new Docker image.

The update from thorax/erigon to erigontech/erigon aligns with the PR objectives while maintaining the same version tag.

Let's verify the new Docker image exists and is accessible:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the new Erigon Docker image exists and is accessible
# Expected: The image should exist with the specified tag

# Test: Check if the image exists on Docker Hub
curl -s -f -L -I "https://hub.docker.com/v2/repositories/erigontech/erigon/tags/v2.60.1" || echo "Image not found"

Length of output: 540


Script:

#!/bin/bash
# Let's verify if the repository exists and check available tags
curl -s "https://hub.docker.com/v2/repositories/erigontech/erigon/tags/?page_size=10" | jq -r '.results[].name' || echo "Repository not found"

# Also check if there's any reference to this version in the codebase
rg "v2\.60\.1" -A 2 -B 2

Length of output: 1647

@gummybera gummybera enabled auto-merge (squash) November 1, 2024 15:27
@@ -33,7 +33,7 @@ EXECUTION_DEFAULT_SETTINGS = {
},
"images": {
"besu": "hyperledger/besu:latest",
"erigon": "thorax/erigon:v2.60.1",
"erigon": "erigontech/erigon:v2.60.1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to change the docker version here, doc referenceImages before 2.60.7 are released in repository [“thorax/erigon”](https://hub.docker.com/r/thorax/erigon/tags) and will not be moved to the new repo;. The new repo has images from 2.60.8 onwards.

kurtosis/beaconkit-all.yaml Outdated Show resolved Hide resolved
Copy link
Contributor

@nidhi-singh02 nidhi-singh02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@gummybera gummybera merged commit 50503f5 into main Nov 5, 2024
16 checks passed
@gummybera gummybera deleted the fix-erigon branch November 5, 2024 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants